import { decrypt } from "@/utils/decrypt";

export function download(url, de = true) {
  const iframe = document.createElement("iframe");
  iframe.style.display = "none";
  iframe.style.height = 0;
  iframe.src = de ? decrypt(url) : url;
  document.body.appendChild(iframe);
  setTimeout(() => {
    iframe.remove();
  }, 1000);
}
